Integrand size = 9, antiderivative size = 27 \[ \int \cot (a+i \log (x)) \, dx=-i x+2 i e^{i a} \text {arctanh}\left (e^{-i a} x\right ) \]
[Out]
Time = 0.02 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.444, Rules used = {4588, 381, 396, 213} \[ \int \cot (a+i \log (x)) \, dx=2 i e^{i a} \text {arctanh}\left (e^{-i a} x\right )-i x \]
[In]
[Out]
Rule 213
Rule 381
Rule 396
Rule 4588
Rubi steps \begin{align*} \text {integral}& = \int \frac {-i-\frac {i e^{2 i a}}{x^2}}{1-\frac {e^{2 i a}}{x^2}} \, dx \\ & = \int \frac {-i e^{2 i a}-i x^2}{-e^{2 i a}+x^2} \, dx \\ & = -i x-\left (2 i e^{2 i a}\right ) \int \frac {1}{-e^{2 i a}+x^2} \, dx \\ & = -i x+2 i e^{i a} \text {arctanh}\left (e^{-i a} x\right ) \\ \end{align*}
Time = 0.01 (sec) , antiderivative size = 42, normalized size of antiderivative = 1.56 \[ \int \cot (a+i \log (x)) \, dx=-i x+2 i \text {arctanh}(x \cos (a)-i x \sin (a)) \cos (a)-2 \text {arctanh}(x \cos (a)-i x \sin (a)) \sin (a) \]
[In]
[Out]
Time = 0.51 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.81
method | result | size |
risch | \(-i x +2 i \operatorname {arctanh}\left (x \,{\mathrm e}^{-i a}\right ) {\mathrm e}^{i a}\) | \(22\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 49 vs. \(2 (17) = 34\).
Time = 0.26 (sec) , antiderivative size = 49, normalized size of antiderivative = 1.81 \[ \int \cot (a+i \log (x)) \, dx=-\sqrt {-e^{\left (2 i \, a\right )}} \log \left (x + i \, \sqrt {-e^{\left (2 i \, a\right )}}\right ) + \sqrt {-e^{\left (2 i \, a\right )}} \log \left (x - i \, \sqrt {-e^{\left (2 i \, a\right )}}\right ) - i \, x \]
[In]
[Out]
Time = 0.11 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.07 \[ \int \cot (a+i \log (x)) \, dx=- i x - \left (i \log {\left (x - e^{i a} \right )} - i \log {\left (x + e^{i a} \right )}\right ) e^{i a} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 94 vs. \(2 (17) = 34\).
Time = 0.21 (sec) , antiderivative size = 94, normalized size of antiderivative = 3.48 \[ \int \cot (a+i \log (x)) \, dx=-{\left (\cos \left (a\right ) + i \, \sin \left (a\right )\right )} \arctan \left (\sin \left (a\right ), x + \cos \left (a\right )\right ) - {\left (\cos \left (a\right ) + i \, \sin \left (a\right )\right )} \arctan \left (\sin \left (a\right ), x - \cos \left (a\right )\right ) - \frac {1}{2} \, {\left (-i \, \cos \left (a\right ) + \sin \left (a\right )\right )} \log \left (x^{2} + 2 \, x \cos \left (a\right ) + \cos \left (a\right )^{2} + \sin \left (a\right )^{2}\right ) - \frac {1}{2} \, {\left (i \, \cos \left (a\right ) - \sin \left (a\right )\right )} \log \left (x^{2} - 2 \, x \cos \left (a\right ) + \cos \left (a\right )^{2} + \sin \left (a\right )^{2}\right ) - i \, x \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 32, normalized size of antiderivative = 1.19 \[ \int \cot (a+i \log (x)) \, dx=i \, e^{\left (i \, a\right )} \log \left (x + e^{\left (i \, a\right )}\right ) - i \, e^{\left (i \, a\right )} \log \left (-x + e^{\left (i \, a\right )}\right ) - i \, x \]
[In]
[Out]
Time = 27.23 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.07 \[ \int \cot (a+i \log (x)) \, dx=-x\,1{}\mathrm {i}+\mathrm {atan}\left (\frac {x}{\sqrt {-{\mathrm {e}}^{a\,2{}\mathrm {i}}}}\right )\,\sqrt {-{\mathrm {e}}^{a\,2{}\mathrm {i}}}\,2{}\mathrm {i} \]
[In]
[Out]